package com.torry.replay.api.request;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author torry.wang
 */
@Data
public class SaveExponentInfoRequest implements Serializable {

    private Long id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate date;

    @ApiModelProperty(value = "上证指数")
    private Double exponent;

    @ApiModelProperty(value = "趋势 1上涨  2下跌  3平盘")
    private Integer trend;

    @ApiModelProperty(value = "涨跌幅")
    private Double diffExponent;

    @ApiModelProperty(value = "涨跌百分比 单位%")
    private Double diffPercent;

    @ApiModelProperty(value = "上涨数")
    private Integer riseNum;

    @ApiModelProperty(value = "下跌数")
    private Integer failNum;

    @ApiModelProperty(value = "平盘数")
    private Integer flatNum;

    @ApiModelProperty(value = "涨停数")
    private Integer limitUpNum;

    @ApiModelProperty(value = "跌停数")
    private Integer limitDownNum;

    @ApiModelProperty(value = "外资流入流出资金 单位 亿")
    private Double foreignValue;

    @ApiModelProperty(value = "外资趋势 0平盘 1流入 2流出")
    private Integer foreignTrend;

    @ApiModelProperty(value = "主力流入流出资金 单位 亿")
    private Double mainValue;

    @ApiModelProperty(value = "主力趋势 0平盘 1流入 2流出")
    private Integer mainTrend;

    @ApiModelProperty(value = "成交额 单位 亿")
    private Double totalVolume;

    @ApiModelProperty(value = "行情回顾")
    private String note;
}
